from django.conf.urls import url
from . import views



urlpatterns = [
    # url(r'areas/$',views.AreasCityView.as_view()),
    url(r'^areas/(?P<pk>\d*)',views.AreasCityView.as_view()),
    url(r'^addresses/$',views.AreasAddView.as_view()),
    # 覆盖路由了
    url(r'^addresses/(?P<pk>\d+)/$',views.AreasAddView.as_view()),
    url(r'^addresses/(?P<pk>\d+)/title/$',views.AreasSetView.as_view()),
    url(r'^addresses/(?P<pk>\d+)/status/$',views.AreasStatusView.as_view()),

]